home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / SHERBLOW.DMO < prev    next >
Text File  |  1996-07-04  |  4KB  |  60 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   SHERBLOW.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20. $INCLUDE "DAS-NBV1.INC"                              '┌──────────────────────
  21. CLS                                                  '│
  22. SCREEN 12                                            '│
  23. GraphicSETUP                                         '│ don't forget this!
  24.                                                      '│
  25. BpC% = fBMPwords%( 8, 16 ) - 1                       '│ storage size
  26. DIM Font% ( BpC%, 255 )                              '│ storage array
  27. DIM Buf1% ( BpC% * 2 )                               '│ working buffer
  28. DIM Buf2% ( BpC% * 3 )                               '│ bigger working buffer
  29. FT_Ptr??? = VARPTR32( Font%(0,0) )                   '│ build some pointers
  30. B1_Ptr??? = VARPTR32( Buf1%(0) )                     '│
  31. B2_Ptr??? = VARPTR32( Buf2%(0) )                     '│
  32. FOR C% = 0 TO 255                                    '│ 255 characters
  33.   LOCATE 1, 1 : PRINT CHR$(C%)                       '│ print chr to screen
  34.   fGetPArr 0, 0, 7, 15, Font%(0,C%), 0               '│ read plane 0 into
  35. NEXT                                                 '│  storage array
  36.                                                      '│
  37. FOR R% = 0 TO 31 STEP 6                              '│ put some background
  38.   GLineDRAW 0, R%, 639, R%, 0, 3, 8                  '│ lines on the screen
  39. NEXT                                                 '│
  40.                                                      '│
  41. T$ = "A quick brown fox jumps over the lazy dog."    '│ a good test string
  42.                                                      '│
  43. FOR P% = 1 TO LEN( T$ )                              '│ print the string
  44.   C% = ASCII( MID$( T$, P% ) )                       '│ get ASCII value
  45.   IF C% <> 32 THEN                                   '│ if not a space
  46.        BlowIconARR  Font%(0,C%), Buf1%(0), 2         '│ bigger is better
  47.        ShearIcon    Buf1%(0), Buf2%(0), -16          '│ \\\ italics \\\
  48.        Ptr??? = B2_Ptr???                            '│ print this data
  49.      ELSE                                            '│
  50.        Buf1%(0) = 8                                  '│ yes, this works!
  51.        Ptr??? = FT_Ptr???                            '│ print this data
  52.   END IF                                             '│
  53.   PutCarr Col%, 0, BYVAL Ptr???, 3, 14               '│ put chr from array
  54.   INCR Col%, Buf1%(0)                                '│ move columns
  55. NEXT                                                 '│ notice that only the
  56.                                                      '│ ON pixels are put
  57. WHILE NOT INSTAT : WEND                              '│ the OFF pixels are
  58. CLS                                                  '│ ignored!
  59. SCREEN 0                                             '└──────────────────────
  60.